from sqlalchemy import Column, Integer, String

from app.models.base import BaseModel


class AttributeGroupDo(BaseModel):
    """属性分组表"""
    __tablename__ = 'attribute_group'
    __table_args__ = {"comment": "属性分组表"}

    attr_group_id = Column(Integer,
                           primary_key=True,
                           autoincrement=True,
                           comment="分组id")
    attr_group_name = Column(String(20), comment="分组名称")
    sort = Column(Integer, comment="分类排序权重(值越小越靠前)")
    descript = Column(Integer, comment="描述")
    image_id = Column(Integer, comment="组图片")
    category_id = Column(Integer, comment="分类ID")
